#ifndef RECORDTHREAD_H
#define RECORDTHREAD_H

extern "C"
{
    #include"avilib.h"
}

#include <QSize>
#include <QThread>
#include <QByteArray>

class RecordThread : public QThread
{
    Q_OBJECT
public:
    RecordThread( QObject* parent = NULL);

public:
    void setWidgetSize(const QSize& size);
    void stopThread();

private slots:
    void slotRcvData(const QByteArray& data);

protected:
    void run();

private:
    bool                m_bStoped;

    QByteArray          m_pixByteArray;

    QSize               m_size;
};

#endif // RECORDTHREAD_H
